﻿//
// pch.h
//

#pragma once

#define GOOGLE_TEST_LIB_PATH "../libs/gtest/"

#ifdef _WIN64
#define LIB_ARCH "x64"
#else
#define LIB_ARCH "x86"
#endif

#ifdef _DEBUG
//#define LIB_COMPILER_MODE "d"
#define LIB_COMPILER_MODE ""
#else
#define LIB_COMPILER_MODE ""
#endif

//#pragma comment(lib,GOOGLE_TEST_LIB_PATH "gtest" LIB_COMPILER_MODE "." LIB_ARCH ".lib")
//#pragma comment(lib,GOOGLE_TEST_LIB_PATH "gtest_main" LIB_COMPILER_MODE "." LIB_ARCH ".lib")
//#pragma comment(lib,GOOGLE_TEST_LIB_PATH "gmock" LIB_COMPILER_MODE "." LIB_ARCH ".lib")
//#pragma comment(lib,GOOGLE_TEST_LIB_PATH "gmock_main" LIB_COMPILER_MODE "." LIB_ARCH ".lib")

//添加静态库引入 gtest.lib,gtest_main.lib,gmock.lib,gmock_main.lib,
#pragma comment(lib,GOOGLE_TEST_LIB_PATH "/" LIB_ARCH "/" "gtest" LIB_COMPILER_MODE ".lib")
#pragma comment(lib,GOOGLE_TEST_LIB_PATH "/" LIB_ARCH "/" "gtest_main" LIB_COMPILER_MODE ".lib")
#pragma comment(lib,GOOGLE_TEST_LIB_PATH "/" LIB_ARCH "/" "gmock" LIB_COMPILER_MODE ".lib")
#pragma comment(lib,GOOGLE_TEST_LIB_PATH "/" LIB_ARCH "/" "gmock_main" LIB_COMPILER_MODE ".lib")

#include "gtest/gtest.h"
